﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;

namespace EnCor.CallingTrack
{
    public class ServiceCallInfo
    {
        private MethodBase _Method;
        private BizService _Service;

        public ServiceCallInfo(BizService service, MethodBase method)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service");
            }
            if (method == null)
            {
                throw new ArgumentNullException("method");
            }
            _Method = method;
            _Service = service;
        }

        public MethodBase Method
        {
            get
            {
                return _Method;
            }
        }

        public BizService BizService
        {
            get
            {
                return _Service;
            }
        }
    }
}
